package com.sy.mapper.purchase;

import com.sy.bean.purchase.PurchaseDetail;
import com.sy.common.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PurchaseDetailMapper extends IMapper<PurchaseDetail> {
    /**
     *批量保存采购信息
     * @param purchaseId
     * @param list
     * @return
     */
    int batchSave(@Param("purchaseId") int purchaseId, @Param("list") List<PurchaseDetail> list);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    int batchDelete(@Param("ids") List<Integer> ids);

    /**
     * 查询采购单明细详情
     * @param ids
     * @return
     */
    int queryDetail(@Param("ids")List<Integer> ids);

}
